//
//  SONGHero.m
//  02-hero展示a
//
//  Created by Song on 16/10/20.
//  Copyright © 2016年 song. All rights reserved.
//

#import "SONGHero.h"

@implementation SONGHero

+ (instancetype)heroWithDict:(NSDictionary *)dict {
    return [[self alloc]initWithDict:dict];
}

- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict]; // 一行代码 字典转模型（封装）
    }
    return self;
}

@end
